﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Editorial.aspx.cs" Inherits="ElectronicJournal.Editorial" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>РЕДСОВЕТ</h3>
       <asp:SqlDataSource ID="SqlDataSourceEditorial" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
        SelectCommand="SELECT * FROM ManagmentEditorial"
        UpdateCommand="UPDATE ManagmentEditorial SET description = @Description , fio = @FIO WHERE id_editorial = @id_editorial"
        InsertCommand="INSERT INTO ManagmentEditorial (Description, FIO) VALUES (@description, @fio)">
        <InsertParameters>
            <asp:Parameter Name="description" Type="String" />
            <asp:Parameter Name="fio" Type="String" />
    
        </InsertParameters>
    </asp:SqlDataSource>
                  <div  id="UsersRolesPanel">
                    <asp:GridView ID="UsersInRolesGridView" runat="server" 
                    DataSourceID="SqlDataSourceEditorial" AutoGenerateColumns="False" CellPadding="1" 
                        CellSpacing="1" DataKeyNames="id_editorial" BorderStyle="None"
                        gridlines="None">
                       

                        <%--<FooterStyle BackColor="#009999" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#009999" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />--%>
                        <Columns>
                            <asp:BoundField DataField="description" SortExpression="name" HeaderText="Описание"/>
                            <asp:BoundField DataField="FIO" SortExpression="width" HeaderText="ФИО"/>

                            
                        </Columns>
                    </asp:GridView>

    
</asp:Content>
